# Contributor: Camille Scholtz <onodera@openmailbox.org>
# Maintainer: Camille Scholtz <onodera@openmailbox.org>
pkgname=atool
pkgver=0.39.0
pkgrel=4
pkgdesc="a Perl script for managing file archives of various types"
options="!check" # No testsuite
url="https://nongnu.org/atool/"
arch="noarch"
license="GPL-3.0-or-later"
depends="perl"
subpackages="$pkgname-doc $pkgname-bash-completion"
source="https://savannah.nongnu.org/download/atool/atool-$pkgver.tar.gz"

build() {
	./configure --prefix=/usr
}

package() {
	make DESTDIR="$pkgdir" install

	install -Dm644 "$builddir"/extra/bash-completion-atool_0.1-1 \
			"$pkgdir"/usr/share/bash-completion/completions/atool
}

sha512sums="2011c13f510a140e71d26f9eac60d07f2cb9004dc278303fd37c5c7f78a6a2366ad9193e7b4e015d9fba8218c59205a6339189ae4775b0afc42328f9607524d3  atool-0.39.0.tar.gz"
